package com.qxy.practice.stream;

import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author : 戚欣扬
 * @description : 练习stream流
 */
public class Practise01 {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int friends= in.nextInt();
        int [] flower = new int[n];
        int sum = 0;
        for(int i = 0 ; i<n;i++){
            flower[i] = in.nextInt();
            sum+=flower[i];
        }

        System.out.println(sum / friends);
    }


}


